<?php
namespace app\swl_api\controller;

use server\core\AsyncController;

class Index extends AsyncController
{
    public function index()
    {
        $data = $_POST;
        $this->http_server->task('app/swl_api/task/TestTask');
        return json(['code' => 1, 'msg' => 'success', 'd' => '成了！成了!可以按think的路径找到我了', 'data' => $data]);
    }

    public function hello($name = 'ThinkPHP5')
    {
        return json(['hello' => $name, 'data' => $_REQUEST]);
    }
}
